// usage: cut 5-20 datafile

using System;

namespace SDET.Util
{
    public class cut
    {
        public static void Main(string[] args)
        {  
            string line;
            string[] split = args[0].Split('-');
            int start = Convert.ToInt32(split[0]);
            int end   = Convert.ToInt32(split[1]);

            if(args.Length > 0 && System.IO.File.Exists(args[1]))
            {
                System.IO.StreamReader file =  new System.IO.StreamReader(args[1]);
                while((line = file.ReadLine()) != null)
                {
                    if(line.Length < start)
                    {
                        //Console.WriteLine();
                        continue;
                    }
                    if(line.Length < end && line.Length >= start)
                    {
                        Console.WriteLine ("{0}", line.Substring(start, line.Length-start));
                    }

                    if(line.Length >= end)
                    {
                        Console.WriteLine ("{0}", line.Substring(start, end-start));
                    }

                }
                file.Close();
            }
        }
    }
}